﻿using System.Collections.Generic;

namespace LH.Model.PU
{
    public class API_Rdrecord
    {
        public string QID { get; set; }
        /// <summary>
        /// 入库单号
        /// </summary>
        public string cCode { get; set; }
        public string dDate { get; set; }
        /// <summary>
        /// 部门编码
        /// </summary>
        public string cDepCode { get; set; }
        public string cPersonCode { get; set; }
        /// <summary>
        /// 收发类别编码
        /// </summary>
        public string cRdCode { get; set; }
        /// <summary>
        /// 供应商编码
        /// </summary>
        public string cVenCode { get; set; }
        /// <summary>
        /// 客户编码
        /// </summary>
        public string cCusCode { get; set; }
        /// <summary>
        /// 仓库编码
        /// </summary>
        public string cWhCode { get; set; }
        public string cMaker { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string cHandler { get; set; }

        /// <summary>
        ///  来源
        /// </summary>
        public string cSource { get; set; }
        
        public string cMemo { get; set; }
        //public string cAccount { get; set; }
        /// <summary>
        /// 领料申请，是否超领
        /// </summary>
        public int bIsComplement { get; set; }

        public string cDefine1 { get; set; }
        public string cDefine2 { get; set; }
        public string cDefine3 { get; set; }
        public string cDefine4 { get; set; }
        public string cDefine5 { get; set; }
        public string cDefine6 { get; set; }
        public string cDefine7 { get; set; }
        public string cDefine8 { get; set; }
        public string cDefine9 { get; set; }
        public string cDefine10 { get; set; }
        public string cDefine11 { get; set; }
        public string cDefine12 { get; set; }
        public string cDefine13 { get; set; }
        public string cDefine14 { get; set; }
        public string cDefine15 { get; set; }
        public string cDefine16 { get; set; }
        public List<RdrecordBody> itemList { get; set; }


        public class RdrecordBody
        {
            public string cRowId { get; set; }
            public string cSoureRowId { get; set; }
            public string iRowNo { get; set; } 
            public string cInvCode { get; set; }
            public string cFree1 { get; set; }
            public string cFree2 { get; set; }
            public string cFree3 { get; set; }
            public string cFree4 { get; set; }
            public string iQuantity { get; set; }

            public string iNum { get; set; }
            public string cBatch { get; set; }
            // 订单重量 自定义项5 
            /// <summary>
            /// 生产订单号
            /// </summary>
            public string cMoCode { get; set; }

            /// <summary>
            /// 生产订单行号
            /// </summary>
            public string cMoRowNo { get; set; }

            /// <summary>
            /// 原生产订单号
            /// </summary>
            public string cOriMoCode { get; set; }

            /// <summary>
            /// 原生产订单行号
            /// </summary>
            public string cOriMoRowNo { get; set; }
           

            /// <summary>
            /// 发货单号
            /// </summary>
            public string cDLCode { get; set; }
            /// <summary>
            /// 发货单行号
            /// </summary>
            public string cDLRowNo { get; set; }
            /// <summary>
            /// 借出单id
            /// </summary>
            public string iDebitIDs { get; set; }

            /// <summary>
            /// 生产订单子件id
            /// </summary>
            public string iAllocateId { get; set; }

            /// <summary>
            /// 货位编码
            /// </summary>
            public string cPosCode { get; set; }
            public Decimal? iNatUnitPrice { get; set; }
            public Decimal? iNatTaxUnitPrice { get; set; }
            public Decimal? iOriUnitPrice { get; set; }
            public Decimal? iOriTaxUnitPrice { get; set; }
            public Decimal? iNatSum { get; set; }
            public Decimal? iNatMoney { get; set; }
            public Decimal? iNatTax { get; set; }
            public Decimal? iOriSum { get; set; }
            public Decimal? iOriMoney { get; set; }
            public Decimal? iOriTax { get; set; }
            public string cItemCode { get; set; }
            public string cItemName { get; set; }
            public string cItem_Class { get; set; }
            public string cItem_Name { get; set; }
            public string cBMemo { get; set; }

            //public string bid { get;set; }
            public string cDefine22 { get; set; }
            public string cDefine23 { get; set; }
            public string cDefine24 { get; set; }
            public string cDefine25 { get; set; }
            public string cDefine26 { get; set; }
            public string cDefine27 { get; set; }
            public string cDefine28 { get; set; }
            public string cDefine29 { get; set; }
            public string cDefine30 { get; set; }
            public string cDefine31 { get; set; }
            public string cDefine32 { get; set; }
            public string cDefine33 { get; set; }
            public string cDefine34 { get; set; }
            public string cDefine35 { get; set; }
            public string cDefine36 { get; set; }
            public string cDefine37 { get; set; }

        }
    }

    
}
